package com.example.orderflow.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *  数据库操作接口
 */
@Mapper
public interface ApprovalStageMapper<T,P> extends BaseMapper<T,P> {

	/**
	 * 根据ApprovalId更新
	 */
	 Integer updateByApprovalId(@Param("bean") T t,@Param("approvalId") Integer approvalId);


	/**
	 * 根据ApprovalId删除
	 */
	 Integer deleteByApprovalId(@Param("approvalId") Integer approvalId);


	/**
	 * 根据ApprovalId获取对象
	 */
	 T selectByApprovalId(@Param("approvalId") Integer approvalId);

	/**
	 * 根据LevelName获取对象
	 */
	 T selectByLevelName(@Param("levelName") String levelName);


}
